using System;

namespace Client
{
	public static class FactoryFiltre
	{
		public static Filtre GetFiltre(string p_Type, string p_Value, Collection p_Collection) {
			if(p_Type == "Album")
				return new Filtre(p_Collection, p_Value, (Music music) => music.Album == p_Value);
			else if(p_Type == "Artist")
				return new Filtre(p_Collection, p_Value, (Music music) => music.Artist == p_Value);
			else		
				return null;
		}
	}
}

